<template >
    <div class="btnDialog">
        <div>
            <el-button size="small" @click="openInvoice(true)">新增</el-button>
        </div>

        <invoiceDialog :invoiceDialogShow="invoiceDialogShow"  @invoicingShow="invoicingShow"></invoiceDialog>
    </div>
</template>
<script>
import invoiceDialog from './invoiceDialog.vue'
export default {
    data(){
        return {
            invoiceDialogShow: false,
        }
    },
    methods:{
        openInvoice(){
            this.invoiceDialogShow = true
        },
  
        invoicingShow(val){
            this.invoiceDialogShow = val
        },
    },
    components:{
        invoiceDialog,
    }
}
</script>

<style lang="scss" scoped>
.btnDialog{
    margin-bottom: 6px;
}
</style>